package com.example.main;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.R;
import com.example.myfragmentdemo.LikeQQActivity;

/**
 * 
 * @author beyond
 * QQ:348638799
 * github: https://github.com/beyondxia
 *
 */
public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		startActivity(new Intent(this, LikeQQActivity.class));
	}
	

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.likeqq:
//			Intent intent = new Intent("com.example.myfragmentdemo.action.LikeQQFragment_message");
//			//Intent intent = new Intent("com.example.myfragmentdemo.action.LikeQQFragment");
//			intent.addCategory(Intent.CATEGORY_DEFAULT);
			//startActivity(new Intent(this, LikeQQActivity.class));
			break;
		case R.id.likeqq2:
			//startActivity(new Intent(this, LikeQQActivity2.class));
			break;
		case R.id.likeqq3:
			startActivity(new Intent(this, LikeQQActivity.class));
			break;
		default:
			break;
		}
	}

}
